<!DOCTYPE HTML>
<html class="help-html">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>实名认证</title>
    <link rel="stylesheet" type="text/css" href="css/swiper.min.css" />
    <link href="css/choose.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="css/aui.css" />
    <link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body class="help-body">
<div class="site-name">
    <p>北京114预约挂号平台</p>
</div>

<div class="add-container">
        <div class="add-list">
            <div class="add-item">
                <div class="add-left">
                    <p>姓名</p>
                </div>
                <div class="add-right">
                    <div class="add-input">
                        <input id="platformName" placeholder="请输入姓名" />
                    </div>
                </div>
            </div>

            <div class="add-item">
                <div class="add-left">
                    <p>证件类型</p>
                </div>
                <div class="add-right">
                    <!--<div class="add-input sele-bp-1">-->
                        <!--<input id="platformIdtype" placeholder="点击选择证件类型"/>-->
                    <!--</div>-->
                    <!--<div class="display-none">-->
                        <select id="status" lay-verify="required">
                            <option value="1">居民身份证(包含现役军人、人民武装警察)</option>
                            <option value="2">港澳居民来往内地通行证</option>
                            <option value="3">台湾居民来往大陆通行证</option>
                            <option value="4">护照</option>
                            <option value="5">外国人永久居留身份证</option>
                            <option value="6">港澳居民居住证</option>
                            <option value="7">台湾居民居住证</option>
                        </select>
                    <!--</div>-->
                    <i class="aui-iconfont aui-icon-right"></i>
                </div>
            </div>

            <div class="add-item">
                <div class="add-left">
                    <p>证件号码</p>
                </div>
                <div class="add-right">
                    <div class="add-input">
                        <input id="platformIdnumber" placeholder="请输入证件号码" />
                    </div>
                </div>
            </div>

        <div class="add-btn">
            <a  id="authentication" href="javascript:;">提交</a>
        </div>

    </div>
</div>

</body>
<script src="js/jquery.min.js"></script>
<script src="js/swiper.min.js"></script>
<script src="js/hSdrop.js"></script>
<script src="js/picker.min.js"></script>
<script type="text/javascript" src="js/city.js"></script>
<script src="js/url.js"></script>
<script type="text/javascript">

    var platform = {
        platformName : $("#platformName").val(),
        platformIdtype : $("#status").val(),
        platformIdnumber : $("#platformIdnumber").val()
    }

    $("#authentication").click(function() {
        $.ajax({
            Type: "post",
            url: getUrl() + "wechat114/platform/autonym",
            data: {"platformName" : $("#platformName").val(),
                "platformIdtype" : $("#status").val(),
                "platformIdnumber" : $("#platformIdnumber").val()},
            dataType: "json",
            success: function (data) {
                alert("成功！")
                window.location.replace(encodeURI(getUrl() +"center.html?platformName="+data.data.platformName));
            }
        })
    })
</script>
</html>
